package com.k2data.k2app.common;

import ma.glasnost.orika.MapperFacade;
import ma.glasnost.orika.MapperFactory;
import ma.glasnost.orika.impl.DefaultMapperFactory;

/**
 * @author lidong9144@163.com 17-6-23.
 */
public class OrikaMapperFactory {

    private static MapperFactory mapperFactory;

    static {
        mapperFactory = new DefaultMapperFactory
                .Builder()
                .mapNulls(false)
                .build();
    }

    public static MapperFacade getMapper() {
        return mapperFactory.getMapperFacade();
    }

}
